<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Config extends Model
{
    use HasFactory;

    protected $table = "sp_config";
    protected $primaryKey = 'id';
    public $timestamps = false;

    public static function settingDetail()
    {
        // todo whis 2024/12/28 21:53 可以统一写个系统配置出来
        $data = (new self())->where('id', 3)->value('value');
        return json_decode($data, true);
    }
}
